IEntityStore<T>
For providers that want a cleaner API with a little more perf
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IEntityStore<T>
Methods
GetById(Object)
View Source
Declaration
T GetById(object id)
Returns
<T>
Parameters
Type | Name |
---|---|
System.Object | id |
GetByIds(IEnumerable)
View Source
Declaration
IList<T> GetByIds(IEnumerable ids)
Returns
System.Collections.Generic.IList<<T>>
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | ids |
GetAll()
View Source
Declaration
IList<T> GetAll()
Returns
System.Collections.Generic.IList<<T>>
Store(T)
View Source
Declaration
T Store(T entity)
Returns
<T>
Parameters
Type | Name |
---|---|
<T> | entity |
StoreAll(IEnumerable<T>)
View Source
Declaration
void StoreAll(IEnumerable<T> entities)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<T>> | entities |
Delete(T)
View Source
Declaration
void Delete(T entity)
Parameters
Type | Name |
---|---|
<T> | entity |
DeleteById(Object)
View Source
Declaration
void DeleteById(object id)
Parameters
Type | Name |
---|---|
System.Object | id |
DeleteByIds(IEnumerable)
View Source
Declaration
void DeleteByIds(IEnumerable ids)
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | ids |
DeleteAll()
View Source
Declaration
void DeleteAll()